// 全局要混入的代码
import {
	mapGetters
} from 'vuex'


export default {
	onShow() {
		uni.setTabBarBadge({
			index: 2,
			text: this.total + ''
		})
	},
	computed: {
		...mapGetters('m_cart', ['total'])
	},
}
